let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n120,
                    i =
                    (this && this.__extends) ||
                    ((_n120 = function n(t, e) {
                            return (_n120 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n120(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.MainTabCom = void 0);
                var r = t('UIComponent'),
                    a = t('ComUtils'),
                    s = t('UIEvent'),
                    c = (function(t) {
                        function e(e, o) {
                            void 0 === o && (o = 0);
                            var n = t.call(this, e) || this;
                            return (n._openLevel = o), n;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this),
                                    (this._reddot = a.default.getNode(this.view, 'reddot')),
                                    (this._imgBg = a.default.getNode(this.view, 'imgBg')),
                                    (this._imgIcon = a.default.getNode(this.view, 'imgIcon')),
                                    (this._imgLabelBg = a.default.getNode(
                                        this.view,
                                        'imgLabelBg'
                                    )),
                                    (this._txtLabelNode = a.default.getNode(
                                        this.view,
                                        'txtLabel'
                                    )),
                                    (this._txtOutLine = this._txtLabelNode.getComponent(
                                        cc.LabelOutline
                                    )),
                                    (this._txtLabel = this._txtLabelNode.getComponent(cc.Label));
                            }),
                            Object.defineProperty(e.prototype, 'openLevel', {
                                get: function get() {
                                    return this._openLevel;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.checkOpen = function(t) {
                                this.enabled = t > this._openLevel;
                            }),
                            (e.prototype.onEnabled = function(e) {
                                t.prototype.onEnabled.call(this, e),
                                    (this._reddot.opacity = e ? 255 : 0),
                                    this.setGray(!e);
                            }),
                            (e.prototype.setRedDotState = function(t) {
                                this._reddot.active = t;
                            }),
                            Object.defineProperty(e.prototype, 'selected', {
                                get: function get() {
                                    return this._selected;
                                },
                                set: function set(t) {
                                    var o = !!this.enabled && t;
                                    this._selected != o &&
                                        ((this._selected = o),
                                            t ?
                                            (e.SelectBtn && (e.SelectBtn.selected = !1),
                                                (e.SelectBtn = this),
                                                this.doOnEffect()) :
                                            (e.SelectBtn == this && (e.SelectBtn = null),
                                                this.doOffEffect()),
                                            this.emit(s.UIEvent.Changed));
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.doOffEffect = function() {
                                cc
                                    .tween(this._imgIcon)
                                    .to(e.EffectTime, {
                                        scale: 0.8,
                                        x: 0,
                                        y: 25
                                    })
                                    .start(),
                                    cc
                                    .tween(this._imgLabelBg)
                                    .to(e.EffectTime, {
                                        opacity: 0
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtLabelNode)
                                    .to(e.EffectTime, {
                                        color: cc.color(234, 199, 168)
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtLabel)
                                    .to(e.EffectTime, {
                                        fontSize: 26
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtOutLine)
                                    .to(e.EffectTime, {
                                        color: cc.color(121, 99, 95)
                                    })
                                    .start(),
                                    cc
                                    .tween(this._imgBg)
                                    .to(e.EffectTime, {
                                        color: cc.color(234, 199, 168)
                                    })
                                    .start(),
                                    cc
                                    .tween(this.view)
                                    .to(e.EffectTime, {
                                        width: 130
                                    })
                                    .start();
                            }),
                            (e.prototype.doOnEffect = function() {
                                cc
                                    .tween(this._imgIcon)
                                    .to(e.EffectTime, {
                                        scale: 1,
                                        x: 0,
                                        y: 35
                                    })
                                    .start(),
                                    cc
                                    .tween(this._imgLabelBg)
                                    .to(e.EffectTime, {
                                        opacity: 255
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtLabelNode)
                                    .to(e.EffectTime, {
                                        color: cc.color(255, 255, 255)
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtLabel)
                                    .to(e.EffectTime, {
                                        fontSize: 32
                                    })
                                    .start(),
                                    cc
                                    .tween(this._txtOutLine)
                                    .to(e.EffectTime, {
                                        color: cc.color(171, 98, 2)
                                    })
                                    .start(),
                                    cc
                                    .tween(this._imgBg)
                                    .to(e.EffectTime, {
                                        color: cc.color(255, 255, 255)
                                    })
                                    .start(),
                                    cc
                                    .tween(this.view)
                                    .to(e.EffectTime, {
                                        width: 180
                                    })
                                    .start();
                            }),
                            (e.EffectTime = 0.1),
                            e
                        );
                    })(r.UIComponent);
                (o.MainTabCom = c), console.log("end");
            module.exports =  e.exports;